/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditStore.java
 *
 * Created on 14 ม.ค. 2553, 2:16:00
 */

package warehouse;

/**
 *
 * @author hj
 */
public class PnlEditSupplier extends javax.swing.JPanel {

    /** Creates new form PnlEditStore */
    public PnlEditSupplier() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditSup = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        lblHeadEditSup = new javax.swing.JLabel();
        btnSupEditSave = new javax.swing.JButton();
        btnSupEditCancel = new javax.swing.JButton();
        btnSupEditDel = new javax.swing.JButton();
        btnSupPrint = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        lblSupCode = new javax.swing.JLabel();
        lblSupPhone = new javax.swing.JLabel();
        txtSupPhone = new javax.swing.JTextField();
        txtSupCode = new javax.swing.JTextField();
        lblSupCompany = new javax.swing.JLabel();
        txtSupCompany = new javax.swing.JTextField();
        lblSupContact = new javax.swing.JLabel();
        txtSupContact = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        txaSupAddress = new javax.swing.JTextArea();
        lblSupAddress = new javax.swing.JLabel();
        lblSupFax = new javax.swing.JLabel();
        txtSupFax = new javax.swing.JTextField();
        lblSupProvoice = new javax.swing.JLabel();
        lblSupZip = new javax.swing.JLabel();
        txtSupZip = new javax.swing.JTextField();
        cmbSupProvoice = new javax.swing.JComboBox();
        txtSupAccNum = new javax.swing.JTextField();
        lblSupAccNum = new javax.swing.JLabel();
        lblSupDate = new javax.swing.JLabel();
        txtSupDate = new javax.swing.JTextField();
        lblSupStatus = new javax.swing.JLabel();
        cmbSupStatus = new javax.swing.JComboBox();

        setBackground(new java.awt.Color(204, 255, 204));
        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditSup.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditSup.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditSup.setPreferredSize(new java.awt.Dimension(700, 80));
        pnlHeadEditSup.setLayout(new java.awt.BorderLayout());

        jPanel1.setBackground(new java.awt.Color(204, 255, 204));
        jPanel1.setPreferredSize(new java.awt.Dimension(700, 27));

        lblHeadEditSup.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadEditSup.setText("ข้อมูลผู้จำหน่าย");

        btnSupEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N
        btnSupEditSave.setMaximumSize(new java.awt.Dimension(40, 40));
        btnSupEditSave.setMinimumSize(new java.awt.Dimension(40, 40));
        btnSupEditSave.setPreferredSize(new java.awt.Dimension(40, 40));

        btnSupEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnSupEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N
        btnSupEditDel.setMaximumSize(new java.awt.Dimension(40, 40));
        btnSupEditDel.setMinimumSize(new java.awt.Dimension(40, 40));
        btnSupEditDel.setPreferredSize(new java.awt.Dimension(40, 40));

        btnSupPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnSupPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnSupPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnSupPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnSupEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnSupEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnSupEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnSupPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadEditSup, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblHeadEditSup)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnSupPrint, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btnSupEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnSupEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnSupEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        pnlHeadEditSup.add(jPanel1, java.awt.BorderLayout.LINE_START);

        add(pnlHeadEditSup, java.awt.BorderLayout.PAGE_START);

        jPanel2.setPreferredSize(new java.awt.Dimension(700, 262));

        lblSupCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupCode.setText("รหัสผู้จำหน่าย :");

        lblSupPhone.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupPhone.setText("เบอร์โทรศัพท์ :");

        txtSupPhone.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtSupCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSupCompany.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupCompany.setText("บริษัทผู้จำหน่าย :");

        txtSupCompany.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSupContact.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupContact.setText("ตัวแทน :");

        txtSupContact.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txaSupAddress.setColumns(13);
        txaSupAddress.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txaSupAddress.setRows(2);
        jScrollPane2.setViewportView(txaSupAddress);

        lblSupAddress.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupAddress.setText("ที่อยู่ :");

        lblSupFax.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupFax.setText("Fax :");

        txtSupFax.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSupProvoice.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupProvoice.setText("จังหวัด :");

        lblSupZip.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupZip.setText("รหัสไปรษณีย์ :");

        txtSupZip.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cmbSupProvoice.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cmbSupProvoice.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "กระบี่ ", "กรุงเทพมหานคร ", "กาญจนบุรี ", "กาฬสินธุ์ ", "กำแพงเพชร  ", "ขอนแก่น ", "จันทบุรี ", "ฉะเชิงเทรา ", "ชลบุรี", "ชัยนาท ", "ชัยภูมิ ", "ชุมพร ", "เชียงราย", "เชียงใหม่ ", "ตรัง ", "ตราด ", "ตาก ", "นครนายก ", "นครปฐม ", "นครพนม", "นครราชสีมา ", "นครศรีธรรมราช ", "นครสวรรค์", "นนทบุรี ", "นราธิวาส ", "น่าน ", "บุรีรัมย์ ", "ปทุมธานี ", "ประจวบคีรีขันธ์ ", "ปราจีนบุรี ", "ปัตตานี ", "พระนครศรีอยุธยา ", "พะเยา ", "พังงา ", "พัทลุง ", "พิจิตร ", "พิษณุโลก ", "เพชรบุรี", "เพชรบูรณ์ ", "แพร่ ", "ภูเก็ต ", "มหาสารคาม ", "มุกดาหาร ", "แม่ฮ่องสอน ", "ยโสธร", "ยะลา ", "ร้อยเอ็ด ", "ระนอง", "ระยอง ", "ราชบุรี ", "ลพบุรี ", "ลำปาง ", "ลำพูน ", "เลย", "ศรีสะเกษ ", "สกลนคร ", "สงขลา", "สตูล", "สมุทรปราการ ", "สมุทรสงคราม ", "สมุทรสาคร  ", "สระแก้ว ", "สระบุรี ", "สิงห์บุรี ", "สุโขทัย ", "สุพรรณบุรี ", "สุราษฎร์ธานี", "สุรินทร์ ", "หนองคาย ", "หนองบัวลำภู ", "อ่างทอง ", "อำนาจเจริญ ", "อุดรธานี ", "อุตรดิตถ์ ", "อุทัยธานี ", "อุบลราชธานี ", " " }));

        txtSupAccNum.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSupAccNum.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupAccNum.setText("หมายเลขบัญชี :");

        lblSupDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupDate.setText("วันที่ต้องชำระ :");

        txtSupDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSupStatus.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupStatus.setText("สถานะการชำระเงิน :");

        cmbSupStatus.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cmbSupStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "เงินสด", "Credit" }));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblSupCode)
                            .addComponent(lblSupCompany)
                            .addComponent(lblSupContact)
                            .addComponent(lblSupPhone)
                            .addComponent(lblSupFax)
                            .addComponent(lblSupAddress)
                            .addComponent(lblSupProvoice)
                            .addComponent(lblSupZip)
                            .addComponent(lblSupStatus))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addComponent(lblSupAccNum)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(lblSupDate)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtSupAccNum, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(cmbSupStatus, javax.swing.GroupLayout.Alignment.LEADING, 0, 165, Short.MAX_VALUE)
                    .addComponent(cmbSupProvoice, javax.swing.GroupLayout.Alignment.LEADING, 0, 165, Short.MAX_VALUE)
                    .addComponent(txtSupZip, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupFax, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupPhone, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupCompany, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupContact, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupCode, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                    .addComponent(txtSupDate, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE))
                .addGap(422, 422, 422))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSupCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSupCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSupCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSupCompany))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupContact)
                    .addComponent(txtSupContact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupPhone)
                    .addComponent(txtSupPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupFax)
                    .addComponent(txtSupFax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSupAddress)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupProvoice)
                    .addComponent(cmbSupProvoice, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupZip)
                    .addComponent(txtSupZip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupStatus)
                    .addComponent(cmbSupStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSupAccNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSupAccNum, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSupDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSupDate, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(93, Short.MAX_VALUE))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnSupEditCancel;
    private javax.swing.JButton btnSupEditDel;
    private javax.swing.JButton btnSupEditSave;
    private javax.swing.JButton btnSupPrint;
    private javax.swing.JComboBox cmbSupProvoice;
    private javax.swing.JComboBox cmbSupStatus;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblHeadEditSup;
    private javax.swing.JLabel lblSupAccNum;
    private javax.swing.JLabel lblSupAddress;
    private javax.swing.JLabel lblSupCode;
    private javax.swing.JLabel lblSupCompany;
    private javax.swing.JLabel lblSupContact;
    private javax.swing.JLabel lblSupDate;
    private javax.swing.JLabel lblSupFax;
    private javax.swing.JLabel lblSupPhone;
    private javax.swing.JLabel lblSupProvoice;
    private javax.swing.JLabel lblSupStatus;
    private javax.swing.JLabel lblSupZip;
    private javax.swing.JPanel pnlHeadEditSup;
    private javax.swing.JTextArea txaSupAddress;
    private javax.swing.JTextField txtSupAccNum;
    private javax.swing.JTextField txtSupCode;
    private javax.swing.JTextField txtSupCompany;
    private javax.swing.JTextField txtSupContact;
    private javax.swing.JTextField txtSupDate;
    private javax.swing.JTextField txtSupFax;
    private javax.swing.JTextField txtSupPhone;
    private javax.swing.JTextField txtSupZip;
    // End of variables declaration//GEN-END:variables

}
